<!DOCTYPE html>
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> 
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/index.css">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
   <input type="hidden" class="id_str"  value="{$id}"/>

	<div class="send_friend">发送好友:
	<volist name="info" id="vo">
	<span class="span_username">
		{$vo.petname}
	</span>
	</volist>
	</div>

	<div class="send_send_friend_mess">尊敬的：XXX用户，{$shopname}提醒 <span class="textarea_in"></span>，感谢您的支持。</div>


	<div class="textarea">
		<textarea></textarea>
	</div>

   <div class="send_info">发送</div>
	<script type="text/javascript">
		$('.textarea textarea').keyup(function(){
			var textarea=$(this).val();
			$('.textarea_in').text(textarea);
		})
	</script>

	<script type="text/javascript">
		$('.send_info').one('click',function(){
          var id=$('.id_str').val();
          var content= $('.textarea_in').text();
          $.post("{:U('Index/send_messgs')}",{id:id,content:content},function(data){
               if(data==100){
                   alert('发送成功!,因为是群发短信,用户接受短信会有延迟,10分钟左右会全部发送出去');
                   location.href="{:U('Index/list_user')}";
               }
          }); 
		})
	</script>
</body>
</html>